package com.mytinyRPC;


import com.mytinyRPC.api.MyProviderService;
import com.mytinyRPC.framework.ProxyFactory;

/***
 * @Author HP
 * @Description //消费端
 **/
public class Consumer {
    public static void main(String[] args) {
        MyProviderService myProviderService = ProxyFactory.getProxy(MyProviderService.class);
        //模拟调用10次，测试平滑加权随机负载均衡
        for (int i = 0; i <10 ; i++) {
            System.out.println(myProviderService.sayHello("CVY"));
        }

    }

}

